package com.zgh.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.ArrayList;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("bbs_comment")
public class BbsComment implements Serializable {
    private static final long serialVersionUID=4L;
    @TableId(value = "id",type = IdType.AUTO)
    private int id;
    @TableField("bbsId")
    private int bbsId;
    @TableField("userId")
    private int userId;
    private int fid;
    private String comment;
    @TableField("commentTime")
    private String commentTime;
    @TableField("thumbCount")
    private int thumbCount;
    @TableField(exist = false)
    private User user;
    @TableField(exist = false)
    private ArrayList<BbsComment> bbsFCommentList;
}
